/**
 * @Company: 北京慧点科技有限公司 | www.smartdot.com.cn
 * @Copyright 1998-2020 © Smartdot Technologies Co., Ltd.
 */
package com.springlearn.zhoufei.other.spring.demo1;

import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 描述该类- JPA
 *
 * @author <a href="mailto:zhoufei@smartdot.com.cn">zhoufei</a>
 * @class: Hello
 * @date 2020/9/18 20:08
 * @Verson 1.0 -2020/9/18 20:08
 * @see
 */
public class Hello10_1 {
    
    private Hello10 hello10;
    
    public Hello10 getHello10() {
        return hello10;
    }
    
    public void setHello10(Hello10 hello10) {
        this.hello10 = hello10;
    }

    public static void main(String[] args) {
        String pathHello = "./other\\Bean.xml";
        AbstractApplicationContext context = new ClassPathXmlApplicationContext(pathHello);
        Hello10_1 hello10_1 = (Hello10_1) context.getBean("hello10_1");

        hello10_1.getHello10().sayHello();
    }
}